package org.kgduyjj.toolkit.beans;

import java.util.function.Function;

public interface BeanConverter<Bean, DTO> extends Function<Bean, DTO> {

    /**
     * 
     * @param source
     * @return
     */
    DTO from(Bean beanObject);

    /**
     * 把当前对象转换为
     * 
     * @return
     */
    Bean to();
}
